<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

	<form action="UpdateServlet" method="post">
		<input type="text" name="id" value="${h.id }" readonly="readonly">
		饭店名称:<input type="text" name="name" value="${h.name }"><br>
		地址:<input type="text" name="address" value="${h.address }"><br>
		简介:<input type="text" name="description" value="${h.description }"><br>
		营业日期:<input type="text" name="opening_time" value="${h.opening_time }"><br>
		菜系:<select name="cid">
			<option value="">请选择</option>
			<c:forEach items="${cu }" var="c">
				<option value="${c.cid }" ${c.cid==h.cid?'selected':'' }>${c.cname }</option>
			</c:forEach>
		</select><br>
		状态:<select name="state">
			
			<option value="0" ${h.state==0?'selected':'' }>休息中</option>
			<option value="1" ${h.state==1?'selected':'' }>营业中</option>
		</select>
		<input type="submit" value="修改">	
	</form>
</body>
</html>